<template>
  <div id="app">
    <router-view />
    <theme-picker />
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";

export default {
  name: "App",
  components: { ThemePicker },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
};
</script>
<style lang='scss'>
#app .theme-picker {
  display: none;
}
div {
  box-sizing: border-box;
}
.base-content{
  background: #fff;
  border-radius: 4px;
}
.global-left{
  float: left;
}
.global-right{
  float: right;
}
.global-flex-bc{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.global-flex-ac{
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.global-flex-sc{
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.global-flex-ec{
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.global-flex-cc{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
  // 单行省略号
	.global-ellipsis {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
  // 文本换行展示
	.global-textwrap {
		word-wrap: break-word;
		word-break: break-all;
		white-space: normal;
	}
</style>
